﻿using System;
using System.Windows.Forms;
using EnvDTE;

namespace SPDevExplorer
{
    public partial class SiteExplorer
    {
        private void mnuSpOpenInBrowser_Click(object sender, EventArgs e)
        {
            try
            {
                TreeNode node = _ctlExplorerTree.SelectedNode;
                string nodeUrl = FullUrlOfNode(node);
                DTE.ItemOperations.Navigate(nodeUrl, vsNavigateOptions.vsNavigateOptionsDefault);
            }
            catch (Exception ex)
            {
                LogEvent(ex);
            }
        }
    }
}